export default {
  props: {
    onlineShow: {
      type: Boolean,
      default: false
    },
  },
  data() {
    return {
      service_QRcode: "",
      service_mobile: "",
      cservice: ""
    };
  },
  mounted() {
    this.serviceDetail()
  },
  methods: {
    serviceDetail() {
      $http.post("goods.customer-service.index", {  }, "正在获取").then(
        response => {
          if (response.result == 1) {
            let res = response.data;
            this.cservice = res.cservice;
            this.service_QRcode = res.service_QRcode;
            this.service_mobile = res.service_mobile;
          } else {
            this.$dialog.alert({ message: response.msg });
          }
        },
        function(response) {
          console.log(response);
        }
      );
    },
  },
};
